package com.haikesi.api.devicetype.dao;

import com.haikesi.api.devicetype.domain.po.DeviceTypePO;
import com.haikesi.api.devicetype.domain.vo.DeviceTypeSearchVO;
import com.haikesi.api.devicetype.domain.vo.DeviceTypeUpdateAlisaVO;
import com.haikesi.api.devicetype.domain.vo.DeviceTypeVO;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface DeviceTypeDao extends Mapper<DeviceTypePO> {

    List<DeviceTypeVO> getList(DeviceTypeSearchVO searchVO);

    DeviceTypeVO getAlias(String productCode);

    int updateAlisaByKey(DeviceTypeUpdateAlisaVO searchVO);

    int updateAliasByPrimaryKey(DeviceTypeUpdateAlisaVO updateAlisaVO);

    int delAllType();

    List<DeviceTypeVO> allList();
}